package com.lingxu.module.redList.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lingxu.module.redList.entity.RedListTemp;
import com.lingxu.module.redList.entity.TempApproval;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Title: RedListTempMapper
 * @Package: com.lingxu.module.redList.mapper
 * @Author: ysj闫世杰
 * @Email: 1105324813@qq.com
 * @Date: Created in 2023/6/25 16:56
 * @Description:
 * @Version: 1.0.0
 */
@Mapper
public interface RedListTempMapper extends BaseMapper<RedListTemp> {

    void deleteAll();

    IPage<RedListTemp> findNeedApprovalList(@Param("listPage") Page<RedListTemp> listPage, @Param("status") String status);

    int findOnly(String idcard);

    int updateApprovalBatch(@Param("approval") TempApproval approval);

    int checkRedList(String idcard);
}
